package com.gzz.demo.pattern.state;

/**
 * 具体状态类 B
 */
public class StateB extends State{

    @Override
    public void Handle(StateContext context) {
        System.out.println("context = Deal With concreateState BBB");
        context.setState(new StateA()); //设置B的下一个状态是A
    }
}
